package com.xbongbong.saas.enums.dictionary;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * 项目决策信息：项目角色
 *
 * @Author: hongxiao
 * @date: 2021-11-16 20:41
 */
@Getter
public enum DecisionInfoRoleEnum {
    // 决策者
    DECISION_MAKER("1", "enum.decisionInfoRole.name.decisionMaker", "decisionMaker", "#722ED1"),
    // 评估者
    EVALUATOR("2", "enum.decisionInfoRole.name.evaluator", "evaluator", "#FF3B30"),
    // 普通
    NORMAL("3", "enum.decisionInfoRole.name.normal", "normal", "#1677FF"),
    // 其他
    OTHER("4", "enum.decisionInfoRole.name.other", "other", "#52C41A"),
    ;

    private String code;
    private String name;
    private String attr;
    private String color;

    DecisionInfoRoleEnum(String code, String name, String attr, String color) {
        this.code = code;
        this.name = name;
        this.attr = attr;
        this.color = color;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
